package com.vichat.res.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-09-21 14:14:40.624
 */
@Entity
@Table(name = "res_file",catalog = "resdb")
public class ResFile implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "res_file";

    /** */
	public static final String ALIAS_RES_ID = "res_id";
    /**资源名称 */
	public static final String ALIAS_RES_NAME = "res_name";
    /**资源原始名称 */
	public static final String ALIAS_RES_ORIGINAL_NAME = "res_original_name";
    /**资源类型 */
	public static final String ALIAS_RES_TYPE = "res_type";
    /**高 */
	public static final String ALIAS_H = "h";
    /**宽 */
	public static final String ALIAS_W = "w";
    /**时长 */
	public static final String ALIAS_L = "l";
    /**大小 */
	public static final String ALIAS_SIZE = "size";
    /**HASH值 */
	public static final String ALIAS_HASH = "hash";
    /**存储源 */
	public static final String ALIAS_STORE_SRC = "store_src";
    /**存储地址 */
	public static final String ALIAS_STORE_URL = "store_url";
    /**存储日期:YYYYMMDD */
	public static final String ALIAS_STORE_DATE = "store_date";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /** */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /** */
	public static final String ALIAS_RESOURCE_DATE = "resource_date";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "res_id", unique = true, nullable = false)
    public java.lang.Long resId;
  
 	@Column(name = "res_name")
    public java.lang.String resName;
  
 	@Column(name = "res_original_name")
    public java.lang.String resOriginalName;
  
 	@Column(name = "res_type")
    public java.lang.String resType;
  
 	@Column(name = "h")
    public java.lang.String h;
  
 	@Column(name = "w")
    public java.lang.String w;
  
 	@Column(name = "l")
    public java.lang.String l;
  
 	@Column(name = "size")
    public java.lang.Long size;
  
 	@Column(name = "hash")
    public java.lang.String hash;
  
 	@Column(name = "store_src")
    public java.lang.String storeSrc;
  
 	@Column(name = "store_url")
    public java.lang.String storeUrl;
  
 	@Column(name = "store_date")
    public java.lang.String storeDate;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "resource_date")
    public java.util.Date resourceDate;
  





	public java.lang.Long getResId() {
		return this.resId;
	}
	
	public void setResId(java.lang.Long value) {
		this.resId = value;
	}

	public java.lang.String getResName() {
		return this.resName;
	}
	
	public void setResName(java.lang.String value) {
		this.resName = value;
	}

	public java.lang.String getResOriginalName() {
		return this.resOriginalName;
	}
	
	public void setResOriginalName(java.lang.String value) {
		this.resOriginalName = value;
	}

	public java.lang.String getResType() {
		return this.resType;
	}
	
	public void setResType(java.lang.String value) {
		this.resType = value;
	}

	public java.lang.String getH() {
		return this.h;
	}
	
	public void setH(java.lang.String value) {
		this.h = value;
	}

	public java.lang.String getW() {
		return this.w;
	}
	
	public void setW(java.lang.String value) {
		this.w = value;
	}

	public java.lang.String getL() {
		return this.l;
	}
	
	public void setL(java.lang.String value) {
		this.l = value;
	}

	public java.lang.Long getSize() {
		return this.size;
	}
	
	public void setSize(java.lang.Long value) {
		this.size = value;
	}

	public java.lang.String getHash() {
		return this.hash;
	}
	
	public void setHash(java.lang.String value) {
		this.hash = value;
	}

	public java.lang.String getStoreSrc() {
		return this.storeSrc;
	}
	
	public void setStoreSrc(java.lang.String value) {
		this.storeSrc = value;
	}

	public java.lang.String getStoreUrl() {
		return this.storeUrl;
	}
	
	public void setStoreUrl(java.lang.String value) {
		this.storeUrl = value;
	}

	public java.lang.String getStoreDate() {
		return this.storeDate;
	}
	
	public void setStoreDate(java.lang.String value) {
		this.storeDate = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.util.Date getResourceDate() {
		return this.resourceDate;
	}
	
	public void setResourceDate(java.util.Date value) {
		this.resourceDate = value;
	}


	
	public ResFile() {
	}
	
	public ResFile(boolean qryflag) {
	    if(qryflag){
	    		this.resId = null;
				this.resName = null;
				this.resOriginalName = null;
				this.resType = null;
				this.h = null;
				this.w = null;
				this.l = null;
				this.size = null;
				this.hash = null;
				this.storeSrc = null;
				this.storeUrl = null;
				this.storeDate = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
				this.resourceDate = null;
			    }
	}


	public ResFile(
	    java.lang.Long inResId,
	    java.lang.String inResName,
	    java.lang.String inResOriginalName,
	    java.lang.String inResType,
	    java.lang.String inH,
	    java.lang.String inW,
	    java.lang.String inL,
	    java.lang.Long inSize,
	    java.lang.String inHash,
	    java.lang.String inStoreSrc,
	    java.lang.String inStoreUrl,
	    java.lang.String inStoreDate,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
		java.util.Date inResourceDate
	 ) {
		super();
				this.resId = inResId;
				this.resName = inResName;
				this.resOriginalName = inResOriginalName;
				this.resType = inResType;
				this.h = inH;
				this.w = inW;
				this.l = inL;
				this.size = inSize;
				this.hash = inHash;
				this.storeSrc = inStoreSrc;
				this.storeUrl = inStoreUrl;
				this.storeDate = inStoreDate;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.resourceDate = inResourceDate;
			}





}

